<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>Edinburgh Human Metabolic Network</title>
</head>
<body>
  <h1>Edinburgh Human Metabolic Network</h1>
  <h2>Browse data</h2>
  <a href="/pathway/">Pathways</a> <br/>
  <a href="/reaction/">Reactions</a> <br/>
  <a href="/compound/">Compounds</a><br/>
  <a href="/gene/">Genes</a><br/>
  <h2>Search reactions</h2>
Search reactions by reactionid, compound id or name, gene id or name, Uniprot ID (etc. P09172), EC number <br/>
related with a disease (eg. Parkinson disease) or targeted for the treatment of a disease or targeted by a drug<br/>
    <form action="" method="get">
    <table>{{form.as_table }}</table>
    <input type="submit" value="Search">
    </form>
    {% if reactions %}
      <h1> {{nre}} reactions found</h1>
      <table cellspacing="0">
	    <thead>
		    <tr>
			    <th>Reactionid</th>
			    <th>Pathway</th>
			    <th>Reversibility</th>
			    <th>Equation</th>
	   	    </tr>
           </thead>
           <tbody>
              {% for rea in reactions %}
	      <tr>
		      <th><a href="../reaction/{{rea.reactionid}}/">{{ rea.reactionid}}</a></th>
		      <td>{{rea.pathway}}</td>
		      <td>{{rea.reversibility}}</td>
		      <td>{{rea.equation}}</td>
	      </tr>
             {% endfor %}
          </tbody>
      </table>
    {% else %}
      <p>No reaction found</p>
    {% endif %}
</body>
</html>
